projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a68366f
)
(emacs-uptime, emacs-init-time): Use float-time rather than time-to-seconds.
author
Glenn Morris
<rgm@gnu.org>
Wed, 2 Sep 2009 03:21:26 +0000
(
03:21
+0000)
committer
Glenn Morris
<rgm@gnu.org>
Wed, 2 Sep 2009 03:21:26 +0000
(
03:21
+0000)
lisp/time.el
patch
|
blob
|
history
diff --git
a/lisp/time.el
b/lisp/time.el
index 1d0b951e4a402ce6b6e7aca53ac1cb433a9a4089..2ff840db7625bd355b8f13f5bf4aa8d871409e56 100644
(file)
--- a/
lisp/time.el
+++ b/
lisp/time.el
@@
-560,7
+560,7
@@
For example, the Unix uptime command format is \"%D, %z%2h:%.2m\"."
(interactive)
(let ((str
(format-seconds (or format "%Y, %D, %H, %M, %z%S")
- (
time-to-seconds
+ (
float-time
(time-subtract (current-time) before-init-time)))))
(if (interactive-p)
(message "%s" str)
@@
-572,7
+572,7
@@
For example, the Unix uptime command format is \"%D, %z%2h:%.2m\"."
(interactive)
(let ((str
(format "%.1f seconds"
- (
time-to-seconds
+ (
float-time
(time-subtract after-init-time before-init-time)))))
(if (interactive-p)
(message "%s" str)